﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_SignUpStudentsNetPayFee_Detail 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_SignUpStudentsNetPayFee_Detail : Entity
    {
        public TB_SignUpStudentsNetPayFee_Detail() : base("TB_SignUpStudentsNetPayFee_Detail") { _ID = Guid.NewGuid().ToString(); }

        #region Model
        private string _OrdNO;
        private string _ID;
        private string _SpecialityKindsNO;
        private decimal _Fee;
        private string _Remark;
        private string _ExamTime;
        private int? _ExamLevel;
        private decimal? _CounterFee;
        private string _ExamYear;
        private string _ChargeUserID;
        private string _ChargeIP;
        private string _ExamPlaceNO;
        /// <summary>
        /// 订单ID
        /// </summary>
        public string OrdNO
        {
            get { return _OrdNO; }
            set
            {
                this.OnPropertyValueChange(_.OrdNO, _OrdNO, value);
                this._OrdNO = value;
            }
        }
        /// <summary>
        /// 主键ID
        /// </summary>
        public string ID
        {
            get { return _ID; }
            set
            {
                this.OnPropertyValueChange(_.ID, _ID, value);
                this._ID = value;
            }
        }
        /// <summary>
        /// 专业
        /// </summary>
        public string SpecialityKindsNO
        {
            get { return _SpecialityKindsNO; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKindsNO, _SpecialityKindsNO, value);
                this._SpecialityKindsNO = value;
            }
        }
        /// <summary>
        /// 费用
        /// </summary>
        public decimal Fee
        {
            get { return _Fee; }
            set
            {
                this.OnPropertyValueChange(_.Fee, _Fee, value);
                this._Fee = value;
            }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get { return _Remark; }
            set
            {
                this.OnPropertyValueChange(_.Remark, _Remark, value);
                this._Remark = value;
            }
        }
        /// <summary>
        /// 考试时间
        /// </summary>
        public string ExamTime
        {
            get { return _ExamTime; }
            set
            {
                this.OnPropertyValueChange(_.ExamTime, _ExamTime, value);
                this._ExamTime = value;
            }
        }
        /// <summary>
        /// 考试级别(初试,复试,三试)
        /// </summary>
        public int? ExamLevel
        {
            get { return _ExamLevel; }
            set
            {
                this.OnPropertyValueChange(_.ExamLevel, _ExamLevel, value);
                this._ExamLevel = value;
            }
        }
        /// <summary>
        /// 手续费
        /// </summary>
        public decimal? CounterFee
        {
            get { return _CounterFee; }
            set
            {
                this.OnPropertyValueChange(_.CounterFee, _CounterFee, value);
                this._CounterFee = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        /// <summary>
        /// 收费人ID
        /// </summary>
        public string ChargeUserID
        {
            get { return _ChargeUserID; }
            set
            {
                this.OnPropertyValueChange(_.ChargeUserID, _ChargeUserID, value);
                this._ChargeUserID = value;
            }
        }
        /// <summary>
        /// 收费电脑IP
        /// </summary>
        public string ChargeIP
        {
            get { return _ChargeIP; }
            set
            {
                this.OnPropertyValueChange(_.ChargeIP, _ChargeIP, value);
                this._ChargeIP = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExamPlaceNO
        {
            get { return _ExamPlaceNO; }
            set
            {
                this.OnPropertyValueChange(_.ExamPlaceNO, _ExamPlaceNO, value);
                this._ExamPlaceNO = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.OrdNO,
				_.ID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.OrdNO,
				_.ID,
				_.SpecialityKindsNO,
				_.Fee,
				_.Remark,
				_.ExamTime,
				_.ExamLevel,
				_.CounterFee,
				_.ExamYear,
				_.ChargeUserID,
				_.ChargeIP,
				_.ExamPlaceNO};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._OrdNO,
				this._ID,
				this._SpecialityKindsNO,
				this._Fee,
				this._Remark,
				this._ExamTime,
				this._ExamLevel,
				this._CounterFee,
				this._ExamYear,
				this._ChargeUserID,
				this._ChargeIP,
				this._ExamPlaceNO};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._OrdNO = DataUtils.ConvertValue<string>(reader["OrdNO"]);
            this._ID = DataUtils.ConvertValue<string>(reader["ID"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
            this._Fee = DataUtils.ConvertValue<decimal>(reader["Fee"]);
            this._Remark = DataUtils.ConvertValue<string>(reader["Remark"]);
            this._ExamTime = DataUtils.ConvertValue<string>(reader["ExamTime"]);
            this._ExamLevel = DataUtils.ConvertValue<int?>(reader["ExamLevel"]);
            this._CounterFee = DataUtils.ConvertValue<decimal?>(reader["CounterFee"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
            this._ChargeUserID = DataUtils.ConvertValue<string>(reader["ChargeUserID"]);
            this._ChargeIP = DataUtils.ConvertValue<string>(reader["ChargeIP"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._OrdNO = DataUtils.ConvertValue<string>(row["OrdNO"]);
            this._ID = DataUtils.ConvertValue<string>(row["ID"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
            this._Fee = DataUtils.ConvertValue<decimal>(row["Fee"]);
            this._Remark = DataUtils.ConvertValue<string>(row["Remark"]);
            this._ExamTime = DataUtils.ConvertValue<string>(row["ExamTime"]);
            this._ExamLevel = DataUtils.ConvertValue<int?>(row["ExamLevel"]);
            this._CounterFee = DataUtils.ConvertValue<decimal?>(row["CounterFee"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
            this._ChargeUserID = DataUtils.ConvertValue<string>(row["ChargeUserID"]);
            this._ChargeIP = DataUtils.ConvertValue<string>(row["ChargeIP"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_SignUpStudentsNetPayFee_Detail");
            /// <summary>
            /// 订单ID
            /// </summary>
            public readonly static Field OrdNO = new Field("OrdNO", "TB_SignUpStudentsNetPayFee_Detail", "订单ID");
            /// <summary>
            /// 主键ID
            /// </summary>
            public readonly static Field ID = new Field("ID", "TB_SignUpStudentsNetPayFee_Detail", "主键ID");
            /// <summary>
            /// 专业
            /// </summary>
            public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO", "TB_SignUpStudentsNetPayFee_Detail", "专业");
            /// <summary>
            /// 费用
            /// </summary>
            public readonly static Field Fee = new Field("Fee", "TB_SignUpStudentsNetPayFee_Detail", "费用");
            /// <summary>
            /// 备注
            /// </summary>
            public readonly static Field Remark = new Field("Remark", "TB_SignUpStudentsNetPayFee_Detail", "备注");
            /// <summary>
            /// 考试时间
            /// </summary>
            public readonly static Field ExamTime = new Field("ExamTime", "TB_SignUpStudentsNetPayFee_Detail", "考试时间");
            /// <summary>
            /// 考试级别(初试,复试,三试)
            /// </summary>
            public readonly static Field ExamLevel = new Field("ExamLevel", "TB_SignUpStudentsNetPayFee_Detail", "考试级别(初试,复试,三试)");
            /// <summary>
            /// 手续费
            /// </summary>
            public readonly static Field CounterFee = new Field("CounterFee", "TB_SignUpStudentsNetPayFee_Detail", "手续费");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_SignUpStudentsNetPayFee_Detail", "考试年度");
            /// <summary>
            /// 收费人ID
            /// </summary>
            public readonly static Field ChargeUserID = new Field("ChargeUserID", "TB_SignUpStudentsNetPayFee_Detail", "收费人ID");
            /// <summary>
            /// 收费电脑IP
            /// </summary>
            public readonly static Field ChargeIP = new Field("ChargeIP", "TB_SignUpStudentsNetPayFee_Detail", "收费电脑IP");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO", "TB_SignUpStudentsNetPayFee_Detail", "ExamPlaceNO");
        }
        #endregion


    }
}


